Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] Clarify the session-specific nature of RID and ObjectID #93190

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

AThousandShips
Copy link
Member

Unsure if it should be a Note or a Warning, and if it should suggest other means to do things instead of using these types, but this helps clarifying the nature (and why they can't generally be serialized in the case of RID)

@AThousandShips AThousandShips added enhancement documentation cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release labels Jun 15, 2024
@AThousandShips AThousandShips added this to the 4.x milestone Jun 15, 2024
@AThousandShips AThousandShips requested a review from a team as a code owner June 15, 2024 11:17
@@ -693,6 +693,7 @@
<return type="int" />
<description>
Returns the object's unique instance ID. This ID can be saved in [EncodedObjectAsID], and can be used to retrieve this object instance with [method @GlobalScope.instance_from_id].
[b]Warning:[/b] This ID is specific to the running session. This means that it won't match the same object if sent over a network, or loaded from a file at a later time.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could go with "isn't guaranteed to match" as it's technically possible to match up, but I think it's best to be negative here and just say they won't (they won't in general, a lot of things would have to match for them to match up in any non-toy setup) to avoid anyone just trusting to luck

doc/classes/Object.xml Outdated Show resolved Hide resolved
@akien-mga akien-mga modified the milestones: 4.x, 4.3 Jun 18, 2024
@akien-mga akien-mga merged commit 4541f64 into godotengine:master Jun 19, 2024
16 checks passed
@AThousandShips AThousandShips deleted the session_doc branch June 19, 2024 08:32
@akien-mga
Copy link
Member

Thanks!

@AThousandShips
Copy link
Member Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release documentation enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants